<template>
  <div ref="wrapRef">
    <slot></slot>
  </div>
</template>

<script lang="ts" setup>
import { onClickOutside } from "@vueuse/core";

const emit = defineEmits(["trigger"]);
const wrapRef = ref(null);

onClickOutside(wrapRef, () => {
  emit("trigger");
});
</script>
